package com.fcl.blog.mapper;

import com.fcl.blog.po.Admin;
import com.fcl.blog.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author 付
 * @Date 2023/10/25 14:33
 * @Version 1.0
 * @description  处理登录相关的mapper，有admin、user
 * @since 1.0
 */
@Mapper
public interface UserMapper {
    Admin selectByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

    User selectByUsernameAndPasswordToUser(@Param("username") String username,@Param("password") String password);

    Admin selectById(@Param("id") String id);
}
